package com.ychs.lawyerback01.mapper;

import com.ychs.lawyerback01.dto.CertificateDTO;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface CertificateMapper {
    // 批量插入证书
    int batchInsert(@Param("certificates") List<CertificateDTO> certificates, @Param("userId") Long userId);


    // 根据用户ID查询证书
    List<CertificateDTO> selectByUserId(@Param("userId") Long userId);

    // 根据用户ID删除证书
    int deleteByUserId(@Param("userId") Long userId);

    // 根据ID列表删除证书
    int deleteByIds(@Param("ids") List<Long> ids);

}